package servers;

import dao.imp.PhoneAddressDaoimp;
import domain.PhoneAddress;

import java.util.ArrayList;

public class PhoneAddressServers {
    PhoneAddressDaoimp pad=new PhoneAddressDaoimp();

    public boolean addPhone(PhoneAddress p) {
        return pad.addPhone(p);
    }

    public boolean deletePhone(String name) {
        return pad.deletePhone(name);
    }

    public boolean updatePhone(PhoneAddress p) {
        return pad.updatePhone(p);
    }

    public ArrayList<PhoneAddress> selectAll() {
        return pad.selectAll();
    }

    public PhoneAddress selectOnename(String name) {
        return pad.selectOnename(name);
    }
}
